package com.google.code.gwt.storage.client;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.user.client.Window;

public class StorageEvent {

	private String key;
	private String oldValue;
	private String newValue;
	private Storage storage;
	private String attrs;

	public StorageEvent(String key, String oldValue, String newValue,
			Storage storage, String attrs) {
		super();
		this.key = key;
		this.oldValue = oldValue;
		this.newValue = newValue;
		this.storage = storage;
		this.attrs = attrs;
	}

	public String getKey() {
		return key;
	}

	public String getOldValue() {
		return oldValue;
	}

	public String getNewValue() {
		return newValue;
	}

	public String getUrl() {
		return Window.Location.getHref();
	}

	public JavaScriptObject getSource() {
		return null;
	}

	public Storage getStorageArea() {
		return storage;
	}

	public String enumerateAttributes() {
		return attrs;
	}

}
